package br.com.eventime.entity;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the recebimentos_inscricao database table.
 * 
 */
@Embeddable
public class RecebimentosInscricaoPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	private Integer inscricao;

	@Column(name="contas_receber")
	private Integer contasReceber;

    public RecebimentosInscricaoPK() {
    }
	public Integer getInscricao() {
		return this.inscricao;
	}
	public void setInscricao(Integer inscricao) {
		this.inscricao = inscricao;
	}
	public Integer getContasReceber() {
		return this.contasReceber;
	}
	public void setContasReceber(Integer contasReceber) {
		this.contasReceber = contasReceber;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof RecebimentosInscricaoPK)) {
			return false;
		}
		RecebimentosInscricaoPK castOther = (RecebimentosInscricaoPK)other;
		return 
			this.inscricao.equals(castOther.inscricao)
			&& this.contasReceber.equals(castOther.contasReceber);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.inscricao.hashCode();
		hash = hash * prime + this.contasReceber.hashCode();
		
		return hash;
    }
}